Compliance Center
Lançar Exchange Online Powershell Module
Estabelecer ligação ao Compliance Center
| Connect-IPPSSession -UserPrincipalName <UPN>
|
Caso haja problemas na ligação é preciso validar que o WinRM está a permitir autenticação básica.
| winrm get winrm/config/client/auth
winrm set winrm/config/client/auth @{Basic="true"}
|
Passo 1: Definir critérios de pesquisa
| New-ComplianceSearch -Name "Remove Phishing Message" -ExchangeLocation all -ContentMatchQuery 'subject:"Update your account information"'
|
| New-ComplianceSearch -Name "Remove Phishing Message" -ExchangeLocation all -ContentMatchQuery '(Received:4/13/2016..4/14/2016) AND (Subject:"Action required")'
|
| New-ComplianceSearch -Name "Remove Phishing Message" -ExchangeLocation all -ContentMatchQuery '(From:[email protected]) AND (Subject:"Update your account information")'
|
Passo 2: Iniciar pesquisa pelos critérios definidos
| Start-ComplianceSearch -Identity "Remove Phishing Message"
|
Verificar número de itens encontrados:
| (Get-ComplianceSearch -Identity "Remove Phishing Message").Items
|
Passo 3: Remover emails
| New-ComplianceSearchAction -SearchName "Remove Phishing Message" -Purge -PurgeType HardDelete
|
Por último, eliminar pesquisa:
| Remove-ComplianceSearchAction -SearchName "Remove Phishing Message"
Remove-ComplianceSearch -Identity "Remove Phishing Message"
|